package com.yuyou.fn.tradingservice.service;

import com.yuyou.fn.tradingservice.entity.ServiceOrder;
import com.yuyou.fn.tradingservice.entity.ServiceOrderItem;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.tradingservice.entity.ServiceProduct;
import com.yuyou.fn.tradingservice.vo.ServiceOrderItemVo;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 * ServiceOrderItem 表数据服务层接口
 *
 */
public interface IServiceOrderItemService extends ISuperService<ServiceOrderItem,Long> {

    BigDecimal generateOrderItems(ServiceOrder order, List<Long> cartItemIds);

    void generateSingleOrderItems(ServiceOrder order, ServiceProduct product, BigDecimal quantity);

    List<ServiceOrderItem> findOrderItemListByOrderId(Long orderId);

    ServiceOrderItemVo findOrderItemDetailById(Long orderItemId);

    /**
     * 根据orderItemId修改状态
     *
     * @param orderItemId
     * @param status
     */
    void changeOrderItemStatus(Long orderItemId,Integer status);

    void orderItemStatus(Long orderId);

    void sendGoods(Long orderId);

    void tradeSuccess(Long orderId);

    List<Long> findRoomIds(Long busTeamId);
}